﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DUBStats
{
    public partial class FilmName : Form
    {
        public string ProjectName { get; set; }

        public FilmName(string projectName)
        {
            InitializeComponent();
            if ((String.IsNullOrEmpty(projectName))) return;
            ProjectName = projectName;
            filmNameTextBox.Text = ProjectName;
        }

        private void sendFilmName_Click(object sender, EventArgs e)
        {
            SaveAndClose();
        }

        private void SaveAndClose()
        {
            ProjectName = filmNameTextBox.Text;
            Close();
        }

    }
}
